Efficient Computation of the Locally Least-Cost Insertion String for the LR Error Repair

نویسندگان

  • Kwang-Moo Choe
  • C. H. Chang
چکیده

The locally least-cost error repair scheme, originally proposed by Fischer et al. [5,6], is an error repair scheme which allows the construction of a table-driven or algorithmic error repairing parser with the insertion and deletion cost of the terminal symbols given by the compiler designers. The principal idea governing locally least-cost error repair is that an input symbol at an errordetection point may always be edited to some string which allows the parser to continue normally [3]. The deletion is performed by comparing the insertion cost of the least-cost insertion string for the error symbol and the deletion cost of the error symbol [5]. The major problem in the locally least-cost error repair is to find out the least-cost insertion terminal string to be inserted. Fischer et al. [6] presented a novel scheme and the corresponding algorithm for computing the least-cost insertion string for LL(1) parsing. Anderson and Backhouse [2] presented an alternative method. But, the formalism and algorithm are rather inefficient for the LR-based parsing--Fischer et al.'s scheme must have the closure graph for all states, and the computing formula is not expressed explicitly [5]. In this paper, the explicit formalisms and efficient algorithms for the LR-based locally least-cost insertion string are presented. They are based on the new LALR formalisms [4,7] recently proposed by the present authors, which lead to more efficient handling of CLOSURE [1].

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Minimum Distance Error Correction

A method is presented for incorporating error correction using a minimum distance measure into LR parsers. The method is suitable for use by an automatic parser-generator. State information in the LR parser stack at the point of detection of error is used to generate a set of strings which are potential repairs to the input. A string with least minimum distance from the actual input is chosen a...

متن کامل

Formulation of Least-Cost Dairy Ration for Small-Scale Dairy Farms Using ‘Solver Add-Ins’ in Microsoft Excel

Small-scale dairy farming in Bangladesh is constrained mostly due to acute shortage, high price and seasonal fluctuation of energy and protein supplements. Poor economic conditions of dairy farmers do not allow them to purchase adequate conventional energy and protein supplements. Locally available non-conventional energy and protein sources can be used as alternatives, cheaper than conventiona...

متن کامل

کنترل بهینة شار حرارتی سطحی در یک جسم دوبعدی با خواص وابسته به دما

In this paper the optimal control of boundary heat flux in a 2-D solid body with an arbitrary shape is performed in order to achieve the desired temperature distribution at a given time interval. The boundary of the body is subdivided into a number of components. On each component a time-dependent heat flux is applied which is independent of the others. Since the thermophysical properties are t...

متن کامل

Repairing Syntax Errors in LR-based Parsers

When a compiler encounters a syntax error, it usually attempts to restart parsing to check the remainder of the input for any further errors. One common method of recovering from syntax errors is to repair the incorrect input string, allowing parsing to continue. This research presents a language independent method for repairing the input string to an LALR(1) parser. The method results in much ...

متن کامل

Optimization-Based Algorithms for Tensor Decompositions: Canonical Polyadic Decomposition, Decomposition in Rank-(Lr, Lr, 1) Terms, and a New Generalization

The canonical polyadic and rank-(Lr , Lr , 1) block term decomposition (CPD and BTD, respectively) are two closely related tensor decompositions. The CPD and, recently, BTD are important tools in psychometrics, chemometrics, neuroscience, and signal processing. We present a decomposition that generalizes these two and develop algorithms for its computation. Among these algorithms are alternatin...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Inf. Process. Lett.

دوره 23  شماره 

صفحات  -

تاریخ انتشار 1986